class AddSystemSettings < ActiveRecord::Migration
  TABLE_NAME = ActiveRecord::Base.pluralize_table_names ? :system_settings : :system_setting

  def self.up
    create_table TABLE_NAME do |t|
      t.column :name,   :text,  :null => false
      t.column :value,  :text,  :null => false
    end

    add_index TABLE_NAME, [:name], :unique => true
  end

  def self.down
    drop_table TABLE_NAME
  end
end
